package com.sc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.pojo.Role;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

/**
 * @Entity com.sc.pojo.Role
 */
public interface RoleMapper extends BaseMapper<Role> {


    List<Role> selectAllById(@Param("id") Long id);

    int insertSelective(Role role);

    int insertBatch(@Param("roleCollection") Collection<Role> roleCollection);

    int delByIdAndRoleName(@Param("id") Long id, @Param("roleName") String roleName);

    int updateRoleName(@Param("roleName") String roleName);

}




